/*
 * @Description:
 * @Author: liyuhao
 * @Date: 2021-08-06 14:38:44
 * @LastEditors: liyuhao
 * @LastEditTime: 2021-10-22 10:52:26
 */
import {
  ConcactTypeEnum,
  EmergencyLevelEnum,
  EmergencyPlanEnum,
  EmergencyPlanLevelEnum,
  EmergencyScoreEnum,
  StatusFlagEnum,
  TaskPriorityEnum
} from './enum'
import CreateEnumMap from "@/utils/CreateEnumMap";

export const StatusFlagMap = CreateEnumMap([
  {
    id: StatusFlagEnum.jieChuJin,
    name: '接处警'
  },
  {
    id: StatusFlagEnum.yinJi,
    name: '应急'
  },
  {
    id: StatusFlagEnum.daiPinGu,
    name: '待评估'
  },
  {
    id: StatusFlagEnum.guiDang,
    name: '归档'
  }
])
export const EmergencyLevelMap = CreateEnumMap([
  {
    id: EmergencyLevelEnum.normal,
    name: '一般'
  },
  {
    id: EmergencyLevelEnum.large,
    name: '较大'
  },
  {
    id: EmergencyLevelEnum.soLarge,
    name: '重大'
  },
  {
    id: EmergencyLevelEnum.severity,
    name: '特别大'
  },
  {
    id: EmergencyLevelEnum.other,
    name: '其他'
  },
])
export const EmergencyScoreMap = CreateEnumMap([
  {
    id: EmergencyScoreEnum.three,
    name: '5分'
  },
  {
    id: EmergencyScoreEnum.four,
    name: '4分'
  },
  {
    id: EmergencyScoreEnum.five,
    name: '3分'
  },
])

export const EmergencyPlanMap = CreateEnumMap([
  {
    id: EmergencyPlanEnum.geology,
    name: '涉旅地质灾害事件处置'
  },
  {
    id: EmergencyPlanEnum.weather,
    name: '涉旅暴雨、洪水、冰雹事件处置'
  },
  {
    id: EmergencyPlanEnum.forest,
    name: '涉旅森林火灾事件处置'
  },
  {
    id: EmergencyPlanEnum.network,
    name: '涉旅通信网络安全事故处置'
  },
  {
    id: EmergencyPlanEnum.equipment,
    name: '涉旅特种设备事故处置'
  },
  {
    id: EmergencyPlanEnum.build,
    name: '涉旅建设安全事故处置'
  },
  {
    id: EmergencyPlanEnum.product,
    name: '涉旅公共场所安全事故处置'
  },
  {
    id: EmergencyPlanEnum.public,
    name: '涉旅地质灾害事件处置'
  },
  {
    id: EmergencyPlanEnum.traffic,
    name: '涉旅道理交通事故处置'
  },
  {
    id: EmergencyPlanEnum.fire,
    name: '涉旅火灾事故处置'
  },
  {
    id: EmergencyPlanEnum.biont,
    name: '涉旅动植物疫情处置'
  },
  {
    id: EmergencyPlanEnum.food,
    name: '涉旅食品安全事件处置'
  },
  {
    id: EmergencyPlanEnum.hygiene,
    name: '涉旅突发公共卫生事件处置'
  },
  {
    id: EmergencyPlanEnum.criminal,
    name: '涉旅刑事案件、恐怖袭击、群体暴力事件处置'
  },
  {
    id: EmergencyPlanEnum.foreign,
    name: '涉旅涉外事件处置'
  }
])

export const EmergencyPlanLevelMap = CreateEnumMap([
  {
    id: EmergencyPlanLevelEnum.perfect,
    name: '完全应急'
  },
  {
    id: EmergencyPlanLevelEnum.manager,
    name: '应急管理'
  },
  {
    id: EmergencyPlanLevelEnum.public,
    name: '公众响应'
  },
])


export const TaskPriorityMap = CreateEnumMap([
  {
    id: TaskPriorityEnum.mostHigh,
    name: '最高'
  },
  {
    id: TaskPriorityEnum.high,
    name: '高'
  },
  {
    id: TaskPriorityEnum.betterHigh,
    name: '较高'
  },
  {
    id: TaskPriorityEnum.normal,
    name: '一般'
  },
  {
    id: TaskPriorityEnum.betterLow,
    name: '较低'
  },
  {
    id: TaskPriorityEnum.low,
    name: '低'
  },
  {
    id: TaskPriorityEnum.other,
    name: '其他'
  },
])

export const ConcactTypeMap = CreateEnumMap([
  {
    id: ConcactTypeEnum.member,
    name: '成员'
  },
  {
    id: ConcactTypeEnum.carryOut,
    name: '执行总指挥'
  },
  {
    id: ConcactTypeEnum.subControl,
    name: '副总指挥'
  },
  {
    id: ConcactTypeEnum.control,
    name: '总指挥'
  }
])


